home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / make / icmake-6.000 / icmake-6 / icmake / rss / findnext.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-08  |  459 b   |  20 lines

  1. /*
  2.                             F I N D N E X T . C
  3. */
  4.  
  5. #include "icrssdef.h"
  6.  
  7. char *findnext()
  8. {
  9.     char
  10.         *cp;                                /* pointer to matched filename */
  11.  
  12.     while (!_dos_findnext(&ifs.find))       /* find next entry */
  13.     {
  14.         if ( (cp = filefound()) )           /* file found ?    */
  15.             return (cp);                    /* return its name */
  16.     }
  17.  
  18.     return (NULL);                          /* none found */
  19. }
  20.